#ifndef UANALYSERRENDERER_H
#define UANALYSERRENDERER_H

#include <QtGui>
#include <QWidget>

class uAnalyserChannelTrace;

//class implementing whole "screen" of this oscilloscope
class uAnalyserRenderer : public QGraphicsScene
{
    Q_OBJECT
public:
    uAnalyserRenderer(QObject *parent = 0);
    QSize sizeHint() const { return QSize(1000, 750); }

    void addTrace(uAnalyserChannelTrace* channel_trace);
    void removeTrace(uAnalyserChannelTrace* channel_trace);

    void setAxesVisible(bool);
    void setGridVisible(bool);

private:
    qreal grid_size;
    QVector<QGraphicsLineItem*> gridLines;
    QColor gridColor;
    QVector<QGraphicsLineItem*> axesLines;
    QColor axesColor;

};

#endif // UANALYSERRENDERER_H
